<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body>
	<div class="d-1">
		<h2 class="h2-ac">病史特征</h2>
		<div class="d-b1">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="specSave()">保存</a>
		</div>
		<div style="padding-top: 10px;">
			<form name="form1" onsubmit="return false;">
				<input type="hidden" name="spec.specId" value="${spec.specId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<table border="1" cellspacing="0" cellpadding="15" class="fs16">
					<tr>
					    <td>病史特征</td>
					    <td>内容</td>
					    <td>说明</td>
					</tr>
					
					<tr>
					    <td>起病方式</td>
					    <td >
					    	<input type="radio" name="spec.mode" value="1" <c:if test="${spec.mode == 1 }">checked="checked"</c:if> >急或较急
					    	<input type="radio" name="spec.mode" value="2" <c:if test="${spec.mode == 2 }">checked="checked"</c:if> >缓慢					    	
					    </td>
					    <td><input type="text" name="spec.modeTxt" value="${spec.modeTxt }"></td>
					</tr>
					
					<tr>
					    <td>病程</td>
					    <td>
					    	<input type="radio" name="spec.course" value="1" <c:if test="${spec.course == 1 }">checked="checked"</c:if> >病程较长
					    	<input type="radio" name="spec.course" value="2" <c:if test="${spec.course == 2 }">checked="checked"</c:if> >病程较短	
					    </td>
					    <td><input type="text" name="spec.courseTxt" value="${spec.courseTxt }"></td>					    
					</tr>
					<tr>
					    <td>既往史特点</td>
					    <td >
					    	<input type="radio" name="spec.trait" value="1" <c:if test="${spec.trait == 1 }">checked="checked"</c:if> >既往多病
					    	<input type="radio" name="spec.trait" value="2" <c:if test="${spec.trait == 2 }">checked="checked"</c:if> >既往体健少病	
					    	<input type="radio" name="spec.trait" value="3" <c:if test="${spec.trait == 3 }">checked="checked"</c:if> >病后初愈，正气未复	
					    </td>
					    <td><input type="text" name="spec.traitTxt" value="${spec.traitTxt }"></td>
					</tr>
					<tr>
					    <td>体质特点</td>
					    <td >
					    	<input type="radio" name="spec.physique" value="1" <c:if test="${spec.physique == 1 }">checked="checked"</c:if> >无明显特点
					    	<input type="radio" name="spec.physique" value="2" <c:if test="${spec.physique == 2 }">checked="checked"</c:if> >平素体质偏虚	
					    	<input type="radio" name="spec.physique" value="3" <c:if test="${spec.physique == 3 }">checked="checked"</c:if> >平素体质偏盛	
					    </td>
					    <td><input type="text" name="spec.physiqueTxt" value="${spec.physiqueTxt }"></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<script type="text/javascript">
		function specSave() {
			$(form1).form('submit',{
				url: __MANAGER+'myastheniaDoc_specificSave.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_specific').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
	</script>
</body>
</html>
